import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/Index'
import Me from '@/pages/Me'

import Login from '@/pages/Login'
import Register from '@/pages/Register'
import Buy from '@/pages/Buy'
import Team from '@/pages/Team'
import TeamDetail from '@/pages/TeamDetail'
import InCode from '@/pages/InCode'
import Stock from '@/pages/Stock'
import Fund from '@/pages/Fund'
import Ratio from '@/pages/Ratio'
import Help from '@/pages/Help'
import Gift from '@/pages/Gift'
import GiftDetail from '@/pages/GiftDetail'
import FundList from '@/pages/FundList'
import FundDetail from '@/pages/FundDetail'
import StockList from '@/pages/StockList'
import Cash from '@/pages/Cash'
import CashLog from '@/pages/CashLog'
import FindPass from '@/pages/FindPass'
import Profile from '@/pages/Profile'
Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Index',
            component: Index
        },
        {
            path: '/me',
            name: 'Me',
            component: Me
        },
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        {
            path: '/user/cash',
            name: 'Cash',
            component: Cash
        },
        {
            path: '/register',
            name: 'Register',
            component: Register
        },
        {
            path: '/team',
            name: 'team',
            component: Team
        },
        {
            path: '/profile',
            name: 'profile',
            component: Profile
        },
        {
            path: '/help',
            name: 'help',
            component: Help
        },
        {
            path: "/find",
            name: 'find',
            component: FindPass
        },
        {
            path: '/user/fund',
            name: 'fund',
            component: Fund
        },
        {
            path: '/user/my_fund',
            name: 'FundList',
            component: FundList
        },
        {
            path: '/user/my_fund/detail',
            name: 'FundDetail',
            component: FundDetail
        },
        {
            path: '/user/radio',
            name: 'Ratio',
            component: Ratio
        },
        {
            path: '/team/detail',
            name: 'detail',
            component: TeamDetail
        },
        {
            path: '/user/code',
            name: 'code',
            component: InCode
        },
        {
            path: '/user/stock',
            name: 'Stock',
            component: Stock
        },
        {
            path: '/user/my_stock',
            name: 'StockList',
            component: StockList
        },
        {
            path: '/user/gift',
            name: 'Gift',
            component: Gift
        },
        {
            path: '/user/cash/logs',
            name: 'CashLog',
            component: CashLog
        },
        {
            path: '/user/gift/detail',
            name: 'GiftDetail',
            component: GiftDetail
        },
        {
            path: '/buy',
            name: 'Buy',
            component: Buy
        }
    ]
})
